package com.ruanxie.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(description = "查询相关参数")
public class QueryModel implements Serializable {
    @ApiModelProperty(value = "第几页，必须，不能为null",required = true)
    private Integer pageNum;
    @ApiModelProperty(value = "每页的展示个数，必须，不能为null",required = true)
    private Integer pageSize;
    @ApiModelProperty(value = "排序方式，非必须。格式为：'属性名1 升降序[,属性名2 升降序,属性名3 升降序,...]',升降序值为[asc或desc]，先按属性1升降序，相等的值再按属性2升降序...",required = false)
    private String sortOrder;
}
